//package com.fy.controller;
//
//import com.fy.utils.result.Result;
//import lombok.extern.slf4j.Slf4j;
//import com.fy.handler.GlobalInterceptor;
//import com.fy.service.CouponService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@Slf4j
//@RestController
//@RequestMapping("/coupon")
//public class CouponController {
//
//    @Autowired
//    private CouponService couponService;
//
//    @GetMapping("/seckill/{userId}/{couponType}")
//    @GlobalInterceptor
//    public Result seckill(@PathVariable Integer userId,@PathVariable Integer couponType){
//        return couponService.seckill(userId,couponType);
//    }
//}
